﻿#include "buttongroup_2.h"
#include "ui_buttongroup_2.h"

ButtonGroup_2::ButtonGroup_2(QWidget *parent) : QWidget(parent), ui(new Ui::ButtonGroup_2Class)
{
	ui->setupUi(this);


}

ButtonGroup_2::~ButtonGroup_2()
{}
void ButtonGroup_2::initButtons() {
	// 设置按钮的大小
	QVector<QPushButton*> btns;
	btns << ui->followButton << ui->pass << ui->addButton;
	for (int i = 0; i < btns.size(); ++i) {
		btns[i]->setFixedSize(60, 35);
	}
	ui->textEdit->setFixedSize(60, 25);



}

//选择显示的按钮组，包括type所包含的5个按钮组
void ButtonGroup_2::selectPanel(Panel type) {
	ui->stackedWidget->setCurrentIndex(type);
}